<div class="property-filter widget">
	<div class="content">
		<form method="get" action="?" class="form-search-box">
         	<div class="w-box-search-form w-box-search-form-header">
            	<h5>PROPERTIES FOR SALE</h5>
           	</div>
           	
           	
           	<div class="sale control-group">
				<div class="controls">
					<label class="radio" for="inputSale"> <input type="radio" name="propertyfor" id="forsaleorforrent1" value="sale"
					<?php if($propertyfor == "sale") {echo 'checked="checked"';} ?>>&nbsp;<?php echo $text_property_forsale; ?>
					</label>
				</div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
			<div class="rent control-group">
				<div class="controls">
					<label class="radio" for="inputRent"> <input type="radio" name="propertyfor" id="forsaleorforrent2" value="rent"
						<?php if($propertyfor == "rent") {echo 'checked="checked"';} ?>>&nbsp;<?php echo $text_property_forlease; ?>
					</label>
				</div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
			<div class="clearfix"></div>
			<div class="list_type control-group"><label class="control-label"
				for="inputListType"> <?php echo $text_listingtype; ?> </label>
				<div class="controls">
					<select name="list_type" id="list_type" class="span12">
						<option value=""><?php echo $text_please_select; ?></option>
						<option <?php if(isset($list_type) && $list_type == "resale") {echo 'selected="selected"';} ?> value="resale"><?php echo $text_resale; ?></option>
						<option <?php if(isset($list_type) && $list_type == "project") {echo 'selected="selected"';} ?> value="project"><?php echo $text_project_listing; ?></option>
					</select>
				</div>
				<!-- /.controls -->
			</div>
			<div class="type control-group"><label class="control-label"
				for="inputType"> <?php echo $text_propertytype; ?> </label>
			<div class="controls">
				<select id="propertytype" name="propertytype" class="span12">
					<option value=""><?php echo $text_all_propertytype; ?></option>
					<?php if(count($dd_propertytype) > 0) { ?>
					<?php foreach ($dd_propertytype as $type) { ?>
					<option value="<?php echo $type->PropertyType_ID; ?>" <?php if(isset($propertytype) && $propertytype == $type->PropertyType_ID) {echo 'selected="selected"';} ?>><?php echo $type->Name; ?></option>
					<?php } ?>
					<?php } ?>
				</select>
			</div>
			<!-- /.controls --></div>
			<!-- /.control-group -->
			<div class="location control-group">
				<label class="control-label" id="inputCity" for="inputCity"><?php echo $text_districtLbl; ?></label>
				<div class="controls city_advance_search">
				<div class="row-fluid">
					<div class="span12">
						<select id="inputLocation" name="locations" class="span12">
							<option value="" id="all-location"><?php echo $text_district; ?></option>
							<?php if(count($lkup_location) > 0) { ?>
							<?php foreach ($lkup_location as $city) { ?>
							<option value="<?php echo $city->Location_ID; ?>" <?php if(is_array($locations) && count($locations) > 0 && in_array($city->Location_ID, $locations)) {echo 'selected="selected"';} ?>><?php echo $city->Name; ?></option>
							<?php } ?>
							<?php } ?>
						</select>
					</div>
				</div>
			</div>
			<!-- /.controls --></div>
			<!-- /.control-group -->
			<div class="sale control-group">
				<div class="controls" ><label class="radio" for="inputSale"> <input
					type="radio" name="localorint" id="local" value="0"
					<?php if($localorInt == 0) {echo 'checked="checked"';} ?>>&nbsp;<?php echo $text_local; ?>
				</label></div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
			<div class="rent control-group">
				<div class="controls">
					<label class="radio" for="inputRent"> 
	                	<input type="radio" name="localorint" id="international" value="1" <?php if($localorInt == 1) {echo 'checked="checked"';} ?>>
	                                &nbsp;<?php echo $text_international; ?>
					</label>
				</div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
			<div class="control-group">
				<label class="control-label" for="inputBeds"> <?php echo $text_bedrooms; ?> </label>
				<div class="controls">
					<div class="row-fluid">
						<div class="span5">
							<input name="bedroom_min" value="<?php if($bedroom_min) {echo $bedroom_min;}else{echo $text_min;} ?>" type="text" id="bedroom_min" class="span12 bedroom_min bed_min small">
						</div>
						<div class="span2">
							<label class="control-label price-lbl to-lbl" for="inputTo"><?php echo $text_to; ?></label>
						</div>
						<div class="span5">
							<input name="bedroom_max" value="<?php if($bedroom_max) {echo $bedroom_max;}else{echo $text_max;} ?>" type="text" id="bedroom_max" class="span12 bedroom_max bed_max small">
						</div>
					</div>
				</div>
			<!-- /.controls -->
			</div>
			<!-- /.control-group -->
		
			<div class="control-group">
				<label class="control-label" for="inputBaths"> <?php echo $text_bathrooms; ?> </label>
				<div class="controls">
					<div class="row-fluid">
						<div class="span5">
							<input name="bathroom_min" value="<?php if($bathroom_min) {echo $bathroom_min;}else{echo $text_min;} ?>" type="text" id="bathroom_min" class="span12 bathroom_min bath_min small">
						</div>
						<div class="span2">
							<label class="control-label price-lbl to-lbl" for="inputTo"><?php echo $text_to; ?></label>
						</div>
						<div class="span5">
							<input name="bathroom_max" value="<?php if($bathroom_max) {echo $bathroom_max;}else{echo $text_max;} ?>" type="text" id="bathroom_max" class="span12 bathroom_max bath_max small">
						</div>
					</div>
				</div>
				<!-- /.controls -->
			</div>
			<!-- /.control-group -->
                        
          	<div class="control-group">
				<label class="control-label" for="inputBaths"> <?php echo $text_price; ?> </label>
				<div class="controls">
					<div class="row-fluid">
						<div class="span5">
							<input name="price_min" value="<?php if($price_min) {echo $price_min;}else{echo $text_min;} ?>" type="text" id="price_min" class="span12 small price_min">
						</div>
						<div class="span2">
							<label class="control-label price-lbl to-lbl" for="inputTo"><?php echo $text_to; ?></label>
						</div>
						<div class="span5">
							<input name="price_max" value="<?php if($price_max) {echo $price_max;}else{echo $text_max;} ?>" type="text" id="price_max" class="span12 small price_max">
						</div>
					</div>
				</div>
				<!-- /.controls -->
			</div>
			
			<div class="control-group">
				<label class="control-label" for="inputBaths"> <?php echo $text_size; ?> </label>
				<div class="controls">
					<div class="row-fluid">
						<div class="span5">
							<input name="size_min" value="<?php if($size_min) {echo $size_min;}else{echo $text_min;} ?>" type="text" id="size_min" class="span12 small size_min">
						</div>
						<div class="span2">
							<label class="control-label price-lbl to-lbl" for="inputTo"><?php echo $text_to; ?></label>
						</div>
						<div class="span5">
							<input name="size_max" value="<?php if($size_max) {echo $size_max;}else{echo $text_max;} ?>" type="text" id="size_max" class="span12 small size_max">
						</div>
					</div>
				</div>
				<!-- /.controls -->
			</div>
				
			<div class="type control-group">
				<label class="control-label" for="inputType"> <?php echo $text_tenure; ?> </label>
				<div class="controls">
					<select name="tenure" id="tenure" class="span12">
						<option value=""><?php echo $text_all_tenure; ?></option>
						<?php if(count($tenure) > 0) { ?>
						<?php foreach ($tenure as $item) { ?>
						<option value="<?php echo $item->Tenure_ID; ?>" <?php if($tenu == $item->Tenure_ID) {echo 'selected="selected"';} ?>><?php echo $item->Name; ?></option>
						<?php } ?>
						<?php } ?>
					</select>
				</div>
			<!-- /.controls -->
			</div>
			<!-- /.control-group -->
		
			<div class="keyword control-group"><input type="text" class="span12 keyword" value="<?php if($keyword) {echo $keyword;}else{echo $text_keyword_of_properties;} ?>" id="keyword"
				name="keyword" value="<?php echo $keyword; ?>"></div>
			<!-- /.control-group -->
		
			<div class="form-actions"><input type="submit" value="Filter now!"
				class="btn btn-primary btn-large"></div>
		<!-- /.form-actions -->
		</form>
	</div>
	<!-- /.content -->
</div>
<!-- /.property-filter -->
